<script type="text/javascript" src="views/parkLotCenter/facilitiesManage/js/parkOrgequ_controlBoard.js"></script>
<script>
    var controlBoardJs = null;
    $(document).ready(function() {
        controlBoardJs = new equControlBoardJs($("#equControlBoardDiv"));
    });
</script>
<div id="equControlBoardDiv" style="height:100%">
    <!---  start切换内容  --->
    <div class="basicInfoContent-panel" style="height:calc(100% - 65px);background: #f0f0f0;">
        <div class="basicInfo-box">
            <div class="list">
                <div class="list-text">
                    <label>设备编号：</label>
                    <input class="k-textbox input-info" type="text" disabled="disabled" id="oid" placeholder="系统自动生成..." data-bind="value:organizationCode" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:organizationTypeCode" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:orgLevel" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:parentCode" />
                </div>
                <div class="list-text">
                    <label>设备名称：</label>
                    <input class="k-textbox input-info" type="text" data-bind="value:organizationName" pattern="^[\u4E00-\u9FA5A-Za-z0-9]+$" validationMessage="检测到特殊字符" required maxlength="31"/>
                </div>
                <div class="list-text">
                    <label>设备类型：</label>
                    <input type="text" style="width:250px"  id="deviceType" data-bind="value:equipmentManagements_basic_deviceid" required>
                </div>
                <div class="list-text">
                    <label>设备机号：</label>
                    <input class="k-textbox input-info"  type="text" data-bind="value:equipmentManagements_basic_deviceNumber" validationMessage="请输入1到99区间值" required pattern="^([1-9]\d{0}|[0-8]\d{1}|9[0-9])$"/>
                </div>
                <div class="list-text">
                    <label>通讯IP：</label>
                    <input class="k-textbox input-info" maxlength="15" type="text" data-bind="value:equipmentManagements_basic_ip" validationMessage="请输入有效IP地址"  required  pattern="^((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))$"/>
                </div>
                <div class="list-text">
                    <label>通讯端口：</label>
                    <input class="k-textbox input-info"  type="text" data-bind="value:equipmentManagements_basic_port" validationMessage="端口号为1到65535区间值"  required pattern="(^[1-9]\d{0,3}$)|(^[1-5]\d{4}$)|(^6[0-4]\d{3}$)|(^65[0-4]\\d{2}$)|(^655[0-2]\d$)|(^6553[0-5]$)"/>
                </div>
                <div class="list-text">
                    <label>网关IP：</label>
                    <input class="k-textbox input-info" maxlength="15" type="text" data-bind="value:equipmentManagements_basic_gatewayIp" validationMessage="请输入有效IP地址" pattern="^((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))$"  required/>
                </div>
                <div class="list-text">
                    <label>子网掩码：</label>
                    <input class="k-textbox input-info" maxlength="15" type="text" data-bind="value:equipmentManagements_basic_subnetMask" validationMessage="请输入有效IP地址" pattern="^((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))$"  required/>
                </div>
                <div class="list-text">
                    <label>DNS_IP：</label>
                    <input class="k-textbox input-info" maxlength="15" type="text" data-bind="value:equipmentManagements_basic_ndsIp" validationMessage="请输入有效IP地址" pattern="^((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))$"  required/>
                </div>
                <div class="list-text">
                    <label>MAC地址：</label>
                    <input class="k-textbox input-info" type="text" data-bind="value:equipmentManagements_basic_mac" validationMessage="请输入有效Mac硬件地址" pattern="^[A-Fa-f0-9]{2}(-[A-Fa-f0-9]{2}){5}$" />
                </div>
                <div class="list-text" style="width: 99%;">
                    <label>设备启动欢迎语：</label>
                    <input class="k-textbox input-info" style="width: 650px;" type="text" pattern="^[\u4E00-\u9FA5A-Za-z0-9]+$" data-bind="value:equipmentManagements_basic_greeting" validationMessage="设备启动欢迎语为必填并且不能存在特殊字符"  required maxlength="31"/>
                </div>
                <div class="list-text" style="width: 99%;">
                    <label>是否脱机：</label>
                    <div class="switch-button">
                        <div class="checkbox">
                            <input type="checkbox" id="offline" data-bind="value:equipmentManagements_charge_offline"/>
                            <label></label>
                        </div></div>
                </div>
                <div id="isOffline">
                    <div class="list-text">
                        <label>客户端IP：</label>
                        <input class="k-textbox input-info" maxlength="15" type="text" data-bind="value:equipmentManagements_basic_clientIp" validationMessage="请输入有效IP地址"  required  pattern="^((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))$"/>
                    </div>
                    <div class="list-text">
                        <label>客户端端口：</label>
                        <input class="k-textbox input-info" type="text" data-bind="value:equipmentManagements_basic_clientPort" validationMessage="端口号为1到65535区间值"  required pattern="(^[1-9]\d{0,3}$)|(^[1-5]\d{4}$)|(^6[0-4]\d{3}$)|(^65[0-4]\\d{2}$)|(^655[0-2]\d$)|(^6553[0-5]$)"/>
                    </div>
                    <div class="list-text">
                        <label>服务器IP：</label>
                        <input class="k-textbox input-info" maxlength="15" type="text" data-bind="value:equipmentManagements_basic_serverIp" validationMessage="请输入有效IP地址"  required  pattern="^((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))$"/>
                    </div>
                    <div class="list-text">
                        <label>服务器端口：</label>
                        <input class="k-textbox input-info" type="text" data-bind="value:equipmentManagements_basic_serverPort" validationMessage="端口号为1到65535区间值"  required pattern="(^[1-9]\d{0,3}$)|(^[1-5]\d{4}$)|(^6[0-4]\d{3}$)|(^65[0-4]\\d{2}$)|(^655[0-2]\d$)|(^6553[0-5]$)"/>
                    </div>
                    <div class="list-text">
                        <label>中心服务器IP：</label>
                        <input class="k-textbox input-info" maxlength="15" type="text" data-bind="value:equipmentManagements_basic_centerIp" validationMessage="请输入有效IP地址"  required  pattern="^((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))$"/>
                    </div>
                    <div class="list-text">
                        <label>中心服务器端口：</label>
                        <input class="k-textbox input-info"  data-bind="value:equipmentManagements_basic_centerPort" validationMessage="端口号为1到65535区间值"  required pattern="(^[1-9]\d{0,3}$)|(^[1-5]\d{4}$)|(^6[0-4]\d{3}$)|(^65[0-4]\\d{2}$)|(^655[0-2]\d$)|(^6553[0-5]$)"/>
                    </div>
                     <div class="list-text">
                        <label>同步服务器周期(秒)：</label>
                        <input class="k-textbox input-info" type="text" data-bind="value:equipmentManagements_basic_synch" validationMessage="同步服务器周期范围为0~60000"  required pattern="^([0-9]\d{0}|\d{2}|\d{3}|\d{4}|[0-5]\d{4}|6000[0-0])$"/>
                    </div>
                    <div class="list-text">
                        <label>心跳包周期(秒)：</label>
                        <input class="k-textbox input-info"  type="text" data-bind="value:equipmentManagements_basic_heartbeat" validationMessage="心跳包周期范围为0~255"  required pattern="^([0-9]\d{0}|\d{2}|[0-1]\d{2}|2233\d{1}|25[0-5])$"/>
                    </div>
                </div>
                <div class="list-text">
                    <label>备注：</label>
                    <textarea class="k-textbox" rows="5" cols="93" style="width:650px" data-bind="value:equipmentManagements_basic_remark"></textarea>
                </div>
            </div>
        </div>
    </div>
    <div class="basicInfo-btn" style="border-top:1px solid #c5c5c5">
        <button class="save" data-bind="click:saveequOrg">确定</button>
        <button class="cancel" data-bind="click:cancel">取消</button>
    </div>
</div>